package com.edu.service;

import com.edu.bean.Book;

import java.util.List;

public interface BookService {
    List<Book> getAllBook();

    int addBook(Book book);

    Book getBook(String bookName);

    List<Book> getBooks(Book book);

    /***
     *
     * @param bookId
     * @return
     * 1成功
     * 0失败
     */
    int delBookById(int bookId);

    /***
     *
     * @param book
     * @return
     * 1成功
     * 0失败
     */
    int updateBookById(Book book);
}
